﻿<h1>{$obj.obj_name|stripslashes|htmlentities}</h1><br />
<div style="margin:0px 20px 0px 20px;">
	<form id="listsearch_{$obj.obj_id}" action="" onsubmit="return false;">
		Suche: <input type="text" name="sq" value="{$parameter.sq}" onkeyup="{strip}
		{literal}
			CMS.onkeyup(this.value,function(value) {
				xajax.request(
						{
							ccdsfun:'ContentEditorListResults'
							,ccdsclass:'ccdsContentEditor'
						},
						{
							parameters:
								[{
									obj_id:{/literal}'{$obj.obj_id}',
									listsearch_class:document.getElementsByName('listsearch_class')[0].value,
									listsearch_range:document.getElementsByName('listsearch_range')[0].value
									,parameter:xajax.getFormValues('listsearch_{$obj.obj_id}')
									{literal}
								}]
							});
				});		
		{/literal}{/strip}" /> 
		<select name="listsearch_class" onchange="{literal}xajax.request(
						{
							ccdsfun:'ContentEditorListResults'
							,ccdsclass:'ccdsContentEditor'
						},
						{
							parameters:
								[{ 
									{/literal}
									obj_id:'{$obj.obj_id}',
									listsearch_class:document.getElementsByName('listsearch_class')[0].value,
									listsearch_range:document.getElementsByName('listsearch_range')[0].value
									{literal}
									,parameter:{
										order:{/literal}'{$parameter.order}'{literal},
										sq:document.getElementsByName('sq')[0].value,
										ordertype:{/literal}'{$parameter.ordertype}'{literal}
										}
								}]
							});{/literal}">
			<option value="all">alle Objekttypen</option>
			{foreach from=$classes item="class"}
				<option value="{$class.class_id}">{$class.ext_name} / {$class.class_name}</option>
			{/foreach}
		</select> 
		<select name="listsearch_range" onchange="{literal}xajax.request(
						{
							ccdsfun:'ContentEditorListResults'
							,ccdsclass:'ccdsContentEditor'
						},
						{
							parameters:
								[{ 
									{/literal}
									obj_id:'{$obj.obj_id}',
									listsearch_class:document.getElementsByName('listsearch_class')[0].value,
									listsearch_range:document.getElementsByName('listsearch_range')[0].value
									{literal}
									,parameter:{
										order:{/literal}'{$parameter.order}'{literal},
										sq:document.getElementsByName('sq')[0].value,
										ordertype:{/literal}'{$parameter.ordertype}'{literal}
										}
								}]
							});{/literal}">
			<option value="{$obj.obj_id}">in Objekten unterhalb diesem</option>
			<option value="all">in allen Objekten</option>
		</select> 
	</form>
	<br />
	<div id="DivContentEditorListResults_{$obj.obj_id}" >


	</div>
</div>







